Write(Byte[],Int32,Int32) Method
In This Topic
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
Syntax
'Declaration
Public Overloads Overrides Sub Write( _
ByVal () As System.Byte, _
ByVal As System.Integer, _
ByVal As System.Integer _
)
public override void Write(
System.byte[] ,
System.int ,
System.int
)
Parameters
- buffer
- offset
- count
Exceptions
Exception | Description |
System.ArgumentException | The sum of offset and count is greater than the buffer length. |
System.ArgumentNullException | buffer is a null reference (Nothing in Visual Basic). |
System.ArgumentOutOfRangeException | offset or count is negative. |
System.IO.IOException | An I/O error occured, such as the specified file cannot be found. |
System.NotSupportedException | The stream does not support writing. |
System.ObjectDisposedException | System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32) was called after the stream was closed. |
See Also